package br.com.atomware.sgtp.client.managed.request;

import com.google.gwt.requestfactory.shared.RequestContext;
import org.springframework.roo.addon.gwt.RooGwtMirroredFrom;
import br.com.atomware.sgtp.domain.Empresa;
import com.google.gwt.requestfactory.shared.Service;
import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.InstanceRequest;

@RooGwtMirroredFrom(Empresa.class)
@Service(Empresa.class)
public interface EmpresaRequest extends RequestContext {

    abstract Request<java.lang.Long> countEmpresas();

    abstract Request<java.util.List<br.com.atomware.sgtp.client.managed.request.EmpresaProxy>> findAllEmpresas();

    abstract Request<java.util.List<br.com.atomware.sgtp.client.managed.request.EmpresaProxy>> findEmpresaEntries(int firstResult, int maxResults);

    abstract Request<br.com.atomware.sgtp.client.managed.request.EmpresaProxy> findEmpresa(Long id);

    abstract InstanceRequest<br.com.atomware.sgtp.client.managed.request.EmpresaProxy, java.lang.Void> remove();

    abstract InstanceRequest<br.com.atomware.sgtp.client.managed.request.EmpresaProxy, java.lang.Void> persist();
}
